﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Test.Otonomos.Utils
{
    public class TestClassWithContainer
    {
        private TestContainer mContainer;

        private TestContainer Container
        {
            get
            {
                if (mContainer == null)
                {
                    mContainer = new TestContainer();
                    mContainer.Initialize();
                }
                return mContainer;
            }
        }

        protected T Resolve<T>()
        {
            return Container.Resolve<T>();
        }
    }
}
